Scenario #3109: Finally Delete Sepa Mandate for Debitor

Properties

Required

Given

name value
bankAccountIBAN DE02701500000000594937

SEPA-Mandate: DE02701500000000594937

HTTP GET "/api/hs/office/sepamandates?iban=DE02701500000000594937" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
[ {
  "uuid" : "ab0df14d-d192-46d6-bc50-be4e321dd818", // SEPA-Mandate: Test AG
  "debitor" : {
    "uuid" : "23b7827c-a7e1-4849-9373-236c870cdaa5", // Debitor: D-3101000 - Test AG - main debitor
    "debitorRel" : {
      "uuid" : "9a4806df-a32d-4d02-85bb-d895838d50e2",
      "anchor" : {
        "uuid" : "9e12338f-c1ea-4237-9d64-f085a84850c6", // Person: Test AG
        "personType" : "LEGAL_PERSON",
        "tradeName" : "Test AG",
        "salutation" : null,
        "title" : null,
        "givenName" : null,
        "familyName" : null
      },
      "holder" : {
        "uuid" : "9e12338f-c1ea-4237-9d64-f085a84850c6", // Person: Test AG
        "personType" : "LEGAL_PERSON",
        "tradeName" : "Test AG",
        "salutation" : null,
        "title" : null,
        "givenName" : null,
        "familyName" : null
      },
      "type" : "DEBITOR",
      "mark" : null,
      "contact" : {
        "uuid" : "391307db-b101-4a9e-9567-b517dc6dea14",
        "caption" : "Test AG - billing department",
        "postalAddress" : { },
        "emailAddresses" : {
          "main" : "billing@test-ag.example.org"
        },
        "phoneNumbers" : { }
      }
    },
    "debitorNumber" : "D-3101000",
    "debitorNumberSuffix" : "00",
    "partner" : {
      "uuid" : "17f118e3-af4e-44b2-a512-6a2a331570a4", // Partner: P-31010 - Test AG
      "partnerNumber" : "P-31010",
      "partnerRel" : {
        "uuid" : "22b0c1b5-5b3b-4cd1-8c56-464f71deeac3", // partnerRelationUuid
        "anchor" : {
          "uuid" : "882bda1d-4e5e-42f8-afdd-b9741d1c1f4e", // Person: Hostsharing eG
          "personType" : "LEGAL_PERSON",
          "tradeName" : "Hostsharing eG",
          "salutation" : null,
          "title" : null,
          "givenName" : null,
          "familyName" : null
        },
        "holder" : {
          "uuid" : "9e12338f-c1ea-4237-9d64-f085a84850c6", // Person: Test AG
          "personType" : "LEGAL_PERSON",
          "tradeName" : "Test AG",
          "salutation" : null,
          "title" : null,
          "givenName" : null,
          "familyName" : null
        },
        "type" : "PARTNER",
        "mark" : null,
        "contact" : {
          "uuid" : "eef1dec6-8687-4615-91ae-3fbbcc48dd34", // Contact: Test AG - China
          "caption" : "Test AG - China",
          "postalAddress" : {
            "country" : "China",
            "province" : "Guangdong Province",
            "city" : "Dongguan City",
            "street" : "No.2 Commercial Second Street",
            "district" : "Niushan Wei Wu",
            "department" : "Executive Board",
            "building" : "Thi Chi Koh Building"
          },
          "emailAddresses" : {
            "main" : "norden@test-ag.example.org"
          },
          "phoneNumbers" : {
            "phone" : "++15 999 654321"
          }
        }
      },
      "details" : {
        "uuid" : "2afc94e0-29c7-4396-8e96-fbb46213e0fa",
        "registrationOffice" : "Registergericht Hamburg",
        "registrationNumber" : "1234567",
        "birthName" : null,
        "birthPlace" : null,
        "birthday" : null,
        "dateOfDeath" : null
      }
    },
    "billable" : true,
    "vatId" : "VAT123456",
    "vatCountryCode" : "DE",
    "vatBusiness" : true,
    "vatReverseCharge" : false,
    "refundBankAccount" : {
      "uuid" : "9b7aa95e-f537-4dbe-adac-ac8d337866e0",
      "holder" : "Test AG - refund bank account",
      "iban" : "DE88100900001234567892",
      "bic" : "BEVODEBB"
    },
    "defaultPrefix" : "tst"
  },
  "bankAccount" : {
    "uuid" : "e94389cd-bde0-4cb4-b725-257a965f512d", // BankAccount: Test AG - debit bank account
    "holder" : "Test AG - debit bank account",
    "iban" : "DE02701500000000594937",
    "bic" : "SSKMDEMM"
  },
  "reference" : "Test AG - main debitor",
  "agreement" : "2022-10-12",
  "validFrom" : "2024-10-15",
  "validTo" : "2025-09-30"
} ]

With production data, the bank-account could be used in multiple SEPA-mandates, make sure to use the right one!

Delete the SEPA-Mandate by its UUID

HTTP DELETE "/api/hs/office/sepamandates/ab0df14d-d192-46d6-bc50-be4e321dd818" // SEPA-Mandate: Test AG \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 204 NO_CONTENT 

generated on 2026-08-10 04:34:22 for branch HEAD